import request from '@/utils/request'

// 查询列表
export function list(data) {
  return request({
    url: '/sys/shopOrderInfo/list',
    method: 'post',
    data:data
  })
}

// 查询统计数据
export function statistics() {
  return request({
    url: '/sys/shopOrderInfo/statistics',
    method: 'get'
  })
}

// 查询详情
export function details(id) {
  return request({
    url: `/sys/shopOrderInfo/${id}`,
    method: 'get'
  })
}
// 关闭
export function close(id) {
  return request({
    url: `/sys/shopOrderInfo/handle/${id}`,
    method: 'post'
  })
}
// 关闭
export function express(data) {
  return request({
    url: `/sys/shopOrderInfo/express`,
    method: 'post',
    data:data
  })
}
